//划过登录注册时显示隐藏
$('.dengluzhuce').mouseenter(function(){
	$('.dengluzhuce em').hide();
	$('.dengluzhuzexiala').show();
}).mouseleave(function(){
	$('.dengluzhuce em').show();
	$('.dengluzhuzexiala').hide();
})
// 划过地址时显示隐藏
$('.header-top-mian > div.pull-left > div:nth-child(2)').mouseenter(function(){
	$('.dizhixuanxiang').css('display','block');
	$('.xsdz').css('border-bottom','0');
	$('.xsdz em').html('&#xe616;');
}).mouseleave(function(){
	$('.dizhixuanxiang').css('display','none');
	$('.xsdz').css('border-bottom','1px solid #dbdbdb');
	$('.xsdz em').html('&#xe730;');
})
// 划过地址选项时，效果不消失
$('.dizhixuanxiang').mouseenter(function(){
	$('.dizhixuanxiang').css('display','block');
	$('.xsdz').css('border-bottom','0');
	$('.xsdz em').html('&#xe616;');
}).mouseleave(function(){
	$('.dizhixuanxiang').css('display','none');
	$('.xsdz').css('border-bottom','1px solid #dbdbdb');
	$('.xsdz em').html('&#xe730;');
})
// 地址选项点击赋值
$('.dizhixuanxiang dd a').click(function(){
	$('.xsdz i').html($(this).html());
})
//头部的顶部的右边滑动显示隐藏，加换图标
$('.header-top-right > div').mouseenter(function(){
	$(this).children('a').css({
		'border':'1px solid #ccc',
		'border-bottom':'1px solid #fff'
	}).next().show();
	$(this).children('a').children('em').children('.ifont').html('&#xe616;');
}).mouseleave(function(){
	$(this).children('a').css({
		'border':'1px solid #fff',
		'border-right':'1px solid #ccc'
	}).next().hide();
	$(this).children('a').children('em').children('.ifont').html('&#xe730;');
})
// 微信二维码的隐藏个显示
$('#xweixin').mouseenter(function(){
	$(this).children('div').show();
}).mouseleave(function(){
	$(this).children('div').hide();
})
//banner的大小图片互换动态效果
$('header .banner div').click(function(){
	$('header .banner a:first-child').slideToggle("slow");
	$('header .banner a:nth-child(2)').slideToggle("slow");
	if($(this).children('span:first-child').html() == '展开'){
		$(this).html('<span>收起</span><span class="ifont">&#xe616;</span>');
	}else{
		$(this).html('<span>展开</span><span class="ifont">&#xe730;</span>');
	}	
});
// 滑上查看跟换搜索类别选项
$('.nav-logo .center form > div.first-child').mouseenter(function(){
	$('.nav-logo .center form > div.first-child div').show();
	$(this).children('span:nth-child(2)').removeClass('glyphicon-chevron-down').addClass('glyphicon-chevron-up');
}).mouseleave(function(){
	$('.nav-logo .center form > div.first-child div').hide();
	$(this).children('span:nth-child(2)').addClass('glyphicon-chevron-down').removeClass('glyphicon-chevron-up');
})
// 点击跟换搜索类别
$('.nav-logo .center form > div.first-child div').click(function(){
	var i = $('.nav-logo .center form > div.first-child .sousuoleibie').html();
	$('.nav-logo .center form > div.first-child .sousuoleibie').html($(this).html());
	$(this).html(i).hide();
	$('.nav-logo .center form > div.first-child span:nth-child(2)').addClass('glyphicon-chevron-down').removeClass('glyphicon-chevron-up');
})
//购物车划过登录
$('.nav-logo .right').mouseenter(function(){
	$(this).children('a').css('border-bottom','1px solid #fff');
	$(this).children('div').show();
}).mouseleave(function(){
	$(this).children('a').css('border-bottom','1px solid #dbdbdb');
	$(this).children('div').hide();
})
// 给sider下的每个ul给个clearfix的类
$('.sider-main ul').addClass('clearfix');
// 给.sider-main > div给个clearfix的类
$('.sider-main > div').addClass('clearfix');
// 给.sider-main > div > div加个pull-left类
$('.sider-main > div > div').addClass('pull-left');
// 侧边选项卡 显示隐藏转换

// .headerer-main XIA  下的  鼠标划过时显示内容并且有0.1秒的向右滑出效果
$('.headerer-main .sider').mouseenter(function(){
	$('.headerer-main .sider-main').show().animate({
		'width':'990px'
	},100);
}).mouseleave(function(){
// 鼠标划出时显示内容并且有0.1秒的向左滑进效果
	$('.headerer-main .sider-main').animate({
		'width':'0px'
	},100).hide();
})
//为了鼠标滑上内容时内容不隐藏
$('.headerer-main .sider-main').mouseenter(function(){
	$('.headerer-main .sider-main').show().animate({
		'width':'990px'
	},100);
})
// 滑上特定的目录显示特定的内容
$('.headerer-main .sider > ul li').mouseenter(function(){
	for(var i=0;i<$('.headerer-main .sider > ul li').length;i++){
		if($(this).get(0)==$('.headerer-main .sider li').get(i)){
			$('.headerer-main .sider-main > div').eq(i).show();
		}
	}
}).mouseleave(function(){
	for(var i=0;i<$('.headerer-main .sider > ul li').length;i++){
		if($(this).get(0)==$('.headerer-main .sider li').get(i)){
			$('.headerer-main .sider-main > div').eq(i).hide();
		}
	}
})
// 为了鼠标滑上内容时内容不隐藏
$('.headerer-main sider-main > div').mouseenter(function(){
	$(this).show();
	for(var i=0;i<$('.headerer-main .sider-main > div').length;i++){
		if($(this).get(0)==$('.headerer-main .sider-main > div').get(i)){
			$('.headerer-main .sider > ul li').eq(i).css({'padding-left':'6px','background-color':'#872222'});
		}
	}
}).mouseleave(function(){
	$(this).hide();
	for(var i=0;i<$('.headerer-main .sider-main > div').length;i++){
		if($(this).get(0)==$('.headerer-main .sider-main > div').get(i)){
			$('.headerer-main .sider > ul li').eq(i).css({'padding-left':'0px','background-color':''});
		}
	}
})
// .main-nav XIA  下的  鼠标划过时显示内容并且有0.1秒的向右滑出效果
$('.main-nav .sider').mouseenter(function(){
	$('.main-nav .sider-main').show().animate({
		'width':'990px'
	},100);
}).mouseleave(function(){
// 鼠标划出时显示内容并且有0.1秒的向左滑进效果
	$('.main-nav .sider-main').animate({
		'width':'0px'
	},100).hide();
})
//为了鼠标滑上内容时内容不隐藏
$('.main-nav .sider-main').mouseenter(function(){
	$('.main-nav .sider-main').show().animate({
		'width':'990px'
	},100);
})
// 滑上特定的目录显示特定的内容
$('.main-nav .sider > ul li').mouseenter(function(){
	for(var i=0;i<$('.main-nav .sider > ul li').length;i++){
		if($(this).get(0)==$('.main-nav .sider li').get(i)){
			$('.main-nav .sider-main > div').eq(i).show();
		}
	}
}).mouseleave(function(){
	for(var i=0;i<$('.main-nav .sider > ul li').length;i++){
		if($(this).get(0)==$('.main-nav .sider li').get(i)){
			$('.main-nav .sider-main > div').eq(i).hide();
		}
	}
})
// 为了鼠标滑上内容时内容不隐藏
$('.main-nav sider-main > div').mouseenter(function(){
	$(this).show();
	for(var i=0;i<$('.main-nav .sider-main > div').length;i++){
		if($(this).get(0)==$('.main-nav .sider-main > div').get(i)){
			$('.main-nav .sider > ul li').eq(i).css({'padding-left':'6px','background-color':'#872222'});
		}
	}
}).mouseleave(function(){
	$(this).hide();
	for(var i=0;i<$('.main-nav .sider-main > div').length;i++){
		if($(this).get(0)==$('.main-nav .sider-main > div').get(i)){
			$('.main-nav .sider > ul li').eq(i).css({'padding-left':'0px','background-color':''});
		}
	}
})
// 加类
$('.sider-right div a').addClass('clearfix');
// 轮播图
$(function(){
	var timer = setInterval(show,3000);
	var i=1;
	function show(){
		if(i>8){
			i=0;
		}
		for(var j = 0;j<$('.lunbotu div.last-child ul li').length;j++){
			$('.lunbotu div.first-child ul li').eq(j).fadeOut();
		}
		$('.lunbotu div.first-child ul li').eq(i).fadeIn();
		for(var j = 0;j<$('.lunbotu div.last-child ul li').length;j++){
			$('.lunbotu div.last-child ul li').eq(j).removeClass('active');
		}
		$('.lunbotu div.last-child ul li').eq(i).addClass('active');
		pan();
		i++;
	}
	$('.lunbotu').mouseenter(function(){
		clearInterval(timer);
	}).mouseleave(function(){
		timer = setInterval(show,3000);
	})
	$('.lunbotu div.last-child ul li').mouseenter(function(){
		for(var j = 0;j<$('.lunbotu div.last-child ul li').length;j++){
			$('.lunbotu div.last-child ul li').eq(j).removeClass('active');
			$('.lunbotu div.first-child ul li').eq(j).fadeOut();
			if($(this).get(0)==$('.lunbotu div.last-child ul li').get(j)){
				i=j;
				$('.lunbotu div.first-child ul li').eq(i).fadeIn();
				pan();
				i++;
			}
		}
		$(this).addClass('active');
	})
	$('.lunbotu .you').click(function(){
		++i;
		if(i>8){
			i=0;
		}
		for(var j = 0;j<9;j++){
			$('.lunbotu div.last-child ul li').eq(j).removeClass('active');
			$('.lunbotu div.first-child ul li').eq(j).fadeOut();
		}
		$('.lunbotu div.first-child ul li').eq(i).fadeIn();
		$('.lunbotu div.last-child ul li').eq(i).addClass('active');
		pan();
	})
	$('.lunbotu .zuo').click(function(){
		--i;
		if(i<0){
			i=8;
		}
		for(var j = 0;j<9;j++){
			$('.lunbotu div.last-child ul li').eq(j).removeClass('active');
			$('.lunbotu div.first-child ul li').eq(j).fadeOut();
		}
		$('.lunbotu div.first-child ul li').eq(i).fadeIn();
		$('.lunbotu div.last-child ul li').eq(i).addClass('active');
		pan();
	})
	// 定义一个函数，用来判断轮播图是什么的时候给类lb背景颜色
	var pan = function pan(){
		switch(i){
			case 0:
				$('.lb').css('background-color','#6D00BB');
			return;
			case 1:
				$('.lb').css('background-color','#FFC40E');
			return;
			case 2:
				$('.lb').css('background-color','#D34182');
			return;
			case 3:
				$('.lb').css('background-color','#446CCC');
			return;
			case 4:
				$('.lb').css('background-color','#0031A4');
			return;
			case 5:
				$('.lb').css('background-color','#FEFEFE');
			return;
			case 6:
				$('.lb').css('background-color','#F3EFA6');
			return;
			case 7:
				$('.lb').css('background-color','#93D358');
			return;
			case 8:
				$('.lb').css('background-color','#F31701');
			return; 
			default:
				console.log('出错');
			return;
	 }
	}
})

$('.nav-logo .center input').click(function(){
	$('.lishijilu').show();
}).mouseleave(function(){
	$('.lishijilu').hide();
})
$('.lishijilu').mouseenter(function(){
	$('.lishijilu').show();
}).mouseleave(function(){
	$('.lishijilu').hide();
})

// 划过充值时显示内容
$('.xxkgg > div.first-child > a.first-child').mouseenter(function(){
	$('.xxkgg > div.last-child > div.first-child').show();
	$('.xxkgg > div.last-child > div.nth-child2').hide();
	$('.xxkgg > div.last-child > div.nth-child3').hide();
	$('.xxkgg > div.first-child > a.first-child').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$('.xxkgg > div.first-child > a.nth-child2').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$('.xxkgg > div.first-child > a.last-child').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$(this).css({
		'border':'1px solid red',
		'border-bottom':'0'
	})
})
$('.xxkgg > div.first-child > a.nth-child2').mouseenter(function(){
	$('.xxkgg > div.last-child > div.first-child').hide();
	$('.xxkgg > div.last-child > div.nth-child2').show();
	$('.xxkgg > div.last-child > div.nth-child3').hide();
	$('.xxkgg > div.first-child > a.first-child').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$('.xxkgg > div.first-child > a.nth-child2').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$('.xxkgg > div.first-child > a.last-child').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$(this).css({
		'border':'1px solid red',
		'border-bottom':'0'
	})
})
$('.xxkgg > div.first-child > a.last-child').mouseenter(function(){
	$('.xxkgg > div.last-child > div.first-child').hide();
	$('.xxkgg > div.last-child > div.nth-child2').hide();
	$('.xxkgg > div.last-child > div.nth-child3').show();
	$('.xxkgg > div.first-child > a.first-child').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$('.xxkgg > div.first-child > a.nth-child2').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$('.xxkgg > div.first-child > a.last-child').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
	$(this).css({
		'border':'1px solid red',
		'border-bottom':'0'
	})
})
// x 
$('.chadiao').click(function(){
	$('.xxkgg').animate({
		top:'188px'
	})
})
$('.chongzhi').mouseenter(function(){
	$('.xxkgg > div.last-child > div.first-child').show();
	$('.xxkgg').animate({
		top:'0px'
	})
	$('.xxkgg > div.first-child > a.first-child').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
})
$('.wangye').mouseenter(function(){
	$('.xxkgg > div.last-child > div.nth-child2').show();
	$('.xxkgg').animate({
		top:'0px'
	})
	$('.xxkgg > div.first-child > a.nth-child2').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
})
$('.qianbao').mouseenter(function(){
	$('.xxkgg > div.last-child > div.nth-child3').show();
	$('.xxkgg').animate({
		top:'0px'
	})
	$('.xxkgg > div.first-child > a.nth-child3').css({
		'border':'0',
		'border-bottom':'1px solid red'
	})
})
// 取消浮动加类
$('.banner-0lou > div.nth-child3 ul li').addClass('clearfix')
$('.banner-0lou > div.nth-child3 > div.last-child').val('1');
$('.banner-0lou > div.nth-child3 > div.last-child').click(function(){
	if($(this).val()==1){
		$('.banner-0lou > div.nth-child3 ul').animate({margin:'0 0 0 -100%'});
		$(this).css('left','0');
		$(this).html('&#xe660;');
		$(this).val('0');
	}else{
		$('.banner-0lou > div.nth-child3 ul').animate({margin:'0'});
		$(this).css('left','1180px');
		$(this).html('&#xe65f;');
		$(this).val('1');
	}
})
// 一楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-1lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-1lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-1lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-1lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-1lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-1lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-1lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-1lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-1lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-1lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-1lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-1lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-1lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-1lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-1lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 2楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-2lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-2lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-2lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-2lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-2lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-2lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-2lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-2lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-2lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-2lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-2lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-2lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-2lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-2lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-2lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 3楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-3lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-3lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-3lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-3lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-3lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-3lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-3lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-3lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-3lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-3lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-3lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-3lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-3lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-3lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-3lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 四楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-4lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-4lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-4lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-4lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-4lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-4lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-4lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-4lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-4lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-4lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-4lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-4lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-4lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-4lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-4lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 5楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-5lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-5lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-5lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-5lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-5lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-5lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-5lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-5lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-5lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-5lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-5lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-5lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-5lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-5lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-5lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 6楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-6lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-6lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-6lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-6lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-6lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-6lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-6lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-6lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-6lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-6lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-6lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-6lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-6lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-6lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-6lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 7楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-7lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-7lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-7lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-7lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-7lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-7lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-7lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-7lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-7lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-7lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-7lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-7lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-7lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-7lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-7lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 8楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-8lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-8lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-8lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-8lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-8lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-8lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-8lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-8lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-8lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-8lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-8lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-8lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-8lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-8lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-8lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 9楼
$(function(){
	var i = 0;
	var tt = setInterval(show,3000);
	function show(){
		// 清除类
		$('.shangping-main-9lou .jindutiao div.active').removeClass('active');
		$('.shangping-main-9lou .jindutiao div.hover').removeClass('hover');
		// 图片轮播
		$('.shangping-main-9lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
		// 加类
		$('.shangping-main-9lou .jindutiao > div').eq(i).addClass('active');
		// 当图片转动后进度条再走
		$('.shangping-main-9lou .jindutiao div.active span').delay(500).animate({width:'30px'},2500).animate({width:'0px'},0)
		i++;
		if(i>2){
			i=0
		}
	}
	// 滑上停止定时
	$('.shangping-main-9lou > div.last-child > div.nth-child2 > div.first-child img').mouseenter(function(){
		clearInterval(tt)
		// 立刻完成动画
		$('.shangping-main-9lou .jindutiao div.active span').finish().css('width','30px');
	}).mouseleave(function(){
		tt = setInterval(show,3000);
		$('.shangping-main-9lou .jindutiao div.active span').css('width','0px');
		// 运行show() 时不立刻换图
		i--;
		if(i==-1){
			i=2;
		}
		show();
	})
	$('.shangping-main-9lou .jindutiao').mouseenter(function(){
		clearInterval(tt);
		$('.shangping-main-9lou .jindutiao div span').finish();
	})
	// 滑上进度条滑动图片		
	$('.shangping-main-9lou .jindutiao > div').mouseenter(function(){
		$('.shangping-main-9lou > div.last-child > div.nth-child2 > div.first-child').finish();
		i=$(this).index();
		$(this).addClass('active');
		$(this).children('span').animate({width:'30px'},0);
		$('.shangping-main-9lou > div.last-child > div.nth-child2 > div.first-child').animate({left:i*(-330)+'px'},500);
	}).mouseleave(function(){
		$('.shangping-main-9lou .jindutiao div.active').removeClass('active');
		$(this).children('span').animate({width:'0px'},0);
		i++;
	})
	show();
})
// 楼陈图片动画效果
$('.shangping-main-9lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 十楼
// 头部滑动选项卡
$('.shangping-main-10lou .biaoti > div.nth-child2 a').mouseenter(function(){
	console.log($(this).index())
	if($(this).index()==0){
		$('.shangping-main-10lou .biaoti > div.nth-child2 em').css('left','39px');
		$('.shanggounr > div').hide();
		$('.shanggounr > div').eq(0).show();
	}else if($(this).index()==1){
		$('.shangping-main-10lou .biaoti > div.nth-child2 em').css('left','109px');
		$('.shanggounr > div').hide();
		$('.shanggounr > div').eq(1).show();
	}else if($(this).index()==2){
		$('.shangping-main-10lou .biaoti > div.nth-child2 em').css('left','181px');
		$('.shanggounr > div').hide();
		$('.shanggounr > div').eq(2).show();
	}
	$('.shangping-main-10lou .biaoti > div.nth-child2 a').css('color','#666');
	$(this).css('color','#cea145');
})
$('.shanggounr > div div').mouseenter(function(){
	$(this).children('p').animate({bottom:'0'})
}).mouseleave(function(){
	$(this).children('p').animate({bottom:'-30px'})
})
// 楼陈图片动画效果
$('.shangping-main-10lou img').mouseenter(function(){
	$(this).animate({opacity:'0.7'}).animate({opacity:'1'});
})
// 一楼到9楼话题框的颜色变化控制‘
$(window).scroll(function(){
	// 电梯
	if($(window).scrollTop()>=1800){
		$('.dianti').show();
	}else{
		$('.dianti').hide();
	}
// 滚动监听
// 1楼1800-2200
	if($(window).scrollTop()<2200){
		$('.dianti a div').show();
		$('.dianti a div').eq(0).hide();
	}
// 2楼2200-2650
	if($(window).scrollTop()>=2200 && $(window).scrollTop()<2650){
		$('.dianti a div').show();
		$('.dianti a div').eq(1).hide();
	}
// 3楼2650-3050
	if($(window).scrollTop()>=2650 && $(window).scrollTop()<3050){
		$('.dianti a div').show();
		$('.dianti a div').eq(2).hide();
	}
// 4楼3050-3650
	if($(window).scrollTop()>=3050 && $(window).scrollTop()<3650){
		$('.dianti a div').show();
		$('.dianti a div').eq(3).hide();
	}
// 5楼3650-4050
	if($(window).scrollTop()>=3650 && $(window).scrollTop()<4050){
		$('.dianti a div').show();
		$('.dianti a div').eq(4).hide();
	}
// 6楼4050-4500
	if($(window).scrollTop()>=4050 && $(window).scrollTop()<4500){
		$('.dianti a div').show();
		$('.dianti a div').eq(5).hide();
	}	
// 7楼4500-4900
	if($(window).scrollTop()>=4500 && $(window).scrollTop()<4900){
		$('.dianti a div').show();
		$('.dianti a div').eq(6).hide();
	}
// 8楼4900-5300
	if($(window).scrollTop()>=4900 && $(window).scrollTop()<5300){
		$('.dianti a div').show();
		$('.dianti a div').eq(7).hide();
	}
// 9楼5300-5700
	if($(window).scrollTop()>=5300 && $(window).scrollTop()<5700){
		$('.dianti a div').show();
		$('.dianti a div').eq(8).hide();
	}	
// 10楼5700-10000000000000000000000
	if($(window).scrollTop()>=5700){
		$('.dianti a div').show();
		$('.dianti a div').eq(9).hide();
	}
	// 1楼1550
	if($(window).scrollTop()>1550){
		$('.shangping-main-1lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-1lou .huatikuan').css('background-color','#fff')
	}
	// 2楼1955
	if($(window).scrollTop()>1950){
		$('.shangping-main-2lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-2lou .huatikuan').css('background-color','#fff')
	}
	// 3楼2400
	if($(window).scrollTop()>2400){
		$('.shangping-main-3lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-3lou .huatikuan').css('background-color','#fff')
	}
	// 4楼2800
	if($(window).scrollTop()>2800){
		$('.shangping-main-4lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-4lou .huatikuan').css('background-color','#fff')
	}
	// 5楼3400
	if($(window).scrollTop()>3400){
		$('.shangping-main-5lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-5lou .huatikuan').css('background-color','#fff')
	}
	// 6楼3800
	if($(window).scrollTop()>3800){
		$('.shangping-main-6lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-6lou .huatikuan').css('background-color','#fff')
	}
	// 7楼4250
	if($(window).scrollTop()>4250){
		$('.shangping-main-7lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-7lou .huatikuan').css('background-color','#fff')
	}
	// 8楼4650
	if($(window).scrollTop()>4650){
		$('.shangping-main-8lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-8lou .huatikuan').css('background-color','#fff')
	}
	// 9楼5050
	if($(window).scrollTop()>5050){
		$('.shangping-main-9lou .huatikuan').css('background-color','#FFF5CC')
	}else{
		$('.shangping-main-9lou .huatikuan').css('background-color','#fff')
	}
	// 当window).scrollTop()>550时第二个头部显示 否则隐藏  且导航选项卡变成固定定位
	if($(window).scrollTop()>550){
		$('.headerer').slideDown();
		$('.headerer .sider').hide();
	}else{
		$('.headerer').slideUp();
	}
})
$('.headerer .sider').hide();
$('.headerer-main > div.first-child').mouseenter(function(){
	$('.headerer .sider').show();
}).mouseleave(function(){
	$('.headerer .sider').hide();
})
// 电梯
// 1楼1800
$('.dianti a').eq(0).click(function(){
	var lou1 = setInterval(louti1,100);
	function louti1(){
		if ($(window).scrollTop()<1800) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<2100 && $(window).scrollTop()>1500) {clearInterval(lou1);$(window).scrollTop(1800)};
		}else if(($(window).scrollTop()>1800)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<2100 && $(window).scrollTop()>1500) {clearInterval(lou1);$(window).scrollTop(1800)};
		}else{
			clearInterval(lou1);$(window).scrollTop(1800)
		}
	}
});
// 2楼2200
$('.dianti a').eq(1).click(function(){
	var lou2 = setInterval(louti2,100);
	function louti2(){
		if ($(window).scrollTop()<2200) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<2500 && $(window).scrollTop()>1900) {clearInterval(lou2);$(window).scrollTop(2200)};
		}else if(($(window).scrollTop()>2200)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<2500 && $(window).scrollTop()>1900) {clearInterval(lou2);$(window).scrollTop(2200)};
		}else{
			clearInterval(lou2);$(window).scrollTop(2200)
		}
	}
});
// 3楼2650
$('.dianti a').eq(2).click(function(){
	var lou3 = setInterval(louti3,100);
	function louti3(){
		if ($(window).scrollTop()<2650) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<2950 && $(window).scrollTop()>2350) {clearInterval(lou3);$(window).scrollTop(2650)};
		}else if(($(window).scrollTop()>2650)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<2950 && $(window).scrollTop()>2350) {clearInterval(lou3);$(window).scrollTop(2650)};
		}else{
			clearInterval(lou3);$(window).scrollTop(2650)
		}
	}
});
// 4楼3050
$('.dianti a').eq(3).click(function(){
	var lou4 = setInterval(louti4,100);
	function louti4(){
		if ($(window).scrollTop()<3050) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<3350 && $(window).scrollTop()>2750) {clearInterval(lou4);$(window).scrollTop(3050)};
		}else if(($(window).scrollTop()>3050)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<3350 && $(window).scrollTop()>2750) {clearInterval(lou4);$(window).scrollTop(3050)};
		}else{
			clearInterval(lou4);$(window).scrollTop(3050)
		}
	}
});
// 5楼3650
$('.dianti a').eq(4).click(function(){
	var lou5 = setInterval(louti5,100);
	function louti5(){
		if ($(window).scrollTop()<3650) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<3950 && $(window).scrollTop()>3350) {clearInterval(lou5);$(window).scrollTop(3650)};
		}else if(($(window).scrollTop()>3650)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<3950 && $(window).scrollTop()>3350) {clearInterval(lou5);$(window).scrollTop(3650)};
		}else{
			clearInterval(lou5);$(window).scrollTop(3650)
		}
	}
});
// 6楼4050
$('.dianti a').eq(5).click(function(){
	var lou6 = setInterval(louti6,100);
	function louti6(){
		if ($(window).scrollTop()<4050) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<4350 && $(window).scrollTop()>3750) {clearInterval(lou6);$(window).scrollTop(4050)};
		}else if(($(window).scrollTop()>4050)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<4350 && $(window).scrollTop()>3750) {clearInterval(lou6);$(window).scrollTop(4050)};
		}else{
			clearInterval(lou6);$(window).scrollTop(4050)
		}
	}
});
// 7楼4500
$('.dianti a').eq(6).click(function(){
	var lou7 = setInterval(louti7,100);
	function louti7(){
		if ($(window).scrollTop()<4500) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<4800 && $(window).scrollTop()>4200) {clearInterval(lou7);$(window).scrollTop(4500)};
		}else if(($(window).scrollTop()>4500)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<4800 && $(window).scrollTop()>4200) {clearInterval(lou7);$(window).scrollTop(4500)};
		}else{
			clearInterval(lou7);$(window).scrollTop(4500)
		}
	}
});
// 8楼4900
$('.dianti a').eq(7).click(function(){
	var lou8 = setInterval(louti8,100);
	function louti8(){
		if ($(window).scrollTop()<4900) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<5200 && $(window).scrollTop()>4600) {clearInterval(lou8);$(window).scrollTop(4900)};
		}else if(($(window).scrollTop()>4900)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<5200 && $(window).scrollTop()>4600) {clearInterval(lou8);$(window).scrollTop(4900)};
		}else{
			clearInterval(lou8);$(window).scrollTop(4900)
		}
	}
});
// 9楼5300
$('.dianti a').eq(8).click(function(){
	var lou9 = setInterval(louti9,100);
	function louti9(){
		if ($(window).scrollTop()<5300) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<5600 && $(window).scrollTop()>5000) {clearInterval(lou9);$(window).scrollTop(5300)};
		}else if(($(window).scrollTop()>5300)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<5600 && $(window).scrollTop()>5000) {clearInterval(lou9);$(window).scrollTop(5300)};
		}else{
			clearInterval(lou9);$(window).scrollTop(5300)
		}
	}
});
// 10楼5700
$('.dianti a').eq(9).click(function(){
	var lou10 = setInterval(louti10,100);
	function louti10(){
		if ($(window).scrollTop()<5700) {
			$(window).scrollTop($(window).scrollTop()+200);
			if ($(window).scrollTop()<6000 && $(window).scrollTop()>5400) {clearInterval(lou10);$(window).scrollTop(5700)};
		}else if(($(window).scrollTop()>5700)){
			$(window).scrollTop($(window).scrollTop()-200);
			if ($(window).scrollTop()<6000 && $(window).scrollTop()>5400) {clearInterval(lou10);$(window).scrollTop(5700)};
		}else{
			clearInterval(lou10);$(window).scrollTop(5700)
		}
	}
});
// 1楼1800-2200
if($(window).scrollTop()<2200){
	$('.dianti a div').show();
	$('.dianti a div').eq(0).hide();
}
// 2楼2200-2650
if($(window).scrollTop()>=2200 && $(window).scrollTop()<2650){
	$('.dianti a div').show();
	$('.dianti a div').eq(1).hide();
}
// 3楼2650-3050
if($(window).scrollTop()>=2650 && $(window).scrollTop()<3050){
	$('.dianti a div').show();
	$('.dianti a div').eq(2).hide();
}
// 4楼3050-3650
if($(window).scrollTop()>=3050 && $(window).scrollTop()<3650){
	$('.dianti a div').show();
	$('.dianti a div').eq(3).hide();
}
// 5楼3650-4050
if($(window).scrollTop()>=3650 && $(window).scrollTop()<4050){
	$('.dianti a div').show();
	$('.dianti a div').eq(4).hide();
}
// 6楼4050-4500
if($(window).scrollTop()>=4050 && $(window).scrollTop()<4500){
	$('.dianti a div').show();
	$('.dianti a div').eq(5).hide();
}	
// 7楼4500-4900
if($(window).scrollTop()>=4500 && $(window).scrollTop()<4900){
	$('.dianti a div').show();
	$('.dianti a div').eq(6).hide();
}
// 8楼4900-5300
if($(window).scrollTop()>=4900 && $(window).scrollTop()<5300){
	$('.dianti a div').show();
	$('.dianti a div').eq(7).hide();
}
// 9楼5300-5700
if($(window).scrollTop()>=5300 && $(window).scrollTop()<5700){
	$('.dianti a div').show();
	$('.dianti a div').eq(8).hide();
}	
// 10楼5700-10000000000000000000000
if($(window).scrollTop()>=5700){
	$('.dianti a div').show();
	$('.dianti a div').eq(9).hide();
}
// 右边购物车点击效果啊
$(function(){
	var w = 1;
	var x = -360;
	$('.gouwudaohang-show > div.first-child > a.first-child').click(function(){
		if(w == 1){
			$(this).css({'background':'#ff5c4d','color':'#fff'});
			var zuob = setInterval(zuo,10);
			function zuo(){
				$('.gouwudaohang').css('right',x+'px')
				if(x==0){
					clearInterval(zuob);
					return;
				}
				x+=10
			}
			w = 2;
		}else{
			$(this).css({'background':'#322f2f','color':'#ff5c4d'});
			var youb = setInterval(you,10);
			function you(){
				$('.gouwudaohang').css('right',x+'px')
				if(x==-360){
					clearInterval(youb);
					return;
				}
				x-=10
			}
			w = 1;
		}
	})
})
$('.gouwudaohang-show > div.first-child a').mouseenter(function(){
	$(this).children('div').animate({right:'34px'})
}).mouseleave(function(){
	$(this).children('div').animate({right:'-34px'})
})
$('.zuihou > a.first-child').mouseenter(function(){
	$(this).children('div').animate({right:'34px'})
}).mouseleave(function(){
	$(this).children('div').animate({right:'-34px'})
})
$('.zuihou > a.last-child').mouseenter(function(){
	$(this).children('div').animate({right:'34px'})
}).mouseleave(function(){
	$(this).children('div').animate({right:'-34px'})
})
$('.zuihou > a.last-child').click(function(){
	var hehe = setInterval(haolei,100);
	function haolei(){
		$(window).scrollTop($(window).scrollTop()-200);
		if ($(window).scrollTop()==0) {
			clearInterval(hehe);
		};
	}
})